const express = require("express");
const router = express.Router();


// 导入子路由
const userRouter = require("./userRoutes");
const dutyRouter = require("./dutyRoutes");
const studyRoomRouter = require("./studyRoomRouter");
const noticeRouter = require("./noticeRouter");
const reserveSeatRouter = require("./reserveSeatRouter");
const violationRouter = require("./violationRouter");

router.use("/user", userRouter);    // 用户相关接口路径：/user/*
router.use("/duty", dutyRouter);    // 值班相关接口路径：/duty/*
router.use("/room", studyRoomRouter);    // 自习室相关接口路径：/room/*
router.use("/notice", noticeRouter);    // 公告相关接口路径：/notice/*
router.use("/reserve", reserveSeatRouter);    // 预约相关接口路径：/reserve/*
router.use("/violation", violationRouter);    // 违规相关接口路径：/violation/*


module.exports = router;
